package cn.tedu.spring.eg1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestProdect {
    public static void main(String[] args) {


        ApplicationContext context=new AnnotationConfigApplicationContext
                ("cn.tedu.spring.eg1");
        Prodect prodect=context.getBean(Prodect.class);
        prodect.setComment("持妆，不卡粉，好用");
        System.out.println(prodect);
    }
}
